<?php
    class ACL{
        var $ci;

        public function __construct(){
            $this->ci =& get_instance();
        }

        public function check(){
            var_dump($this->ci);
            die();

            $cur_role = $this->ci->session->userdata('role');
            $cur_segment = $this->ci->uri->segments;
            var_dump($cur_role == ROLE_ADMIN, in_array(ADMIN_FOLDER_WSLASH, $cur_segment));
            die('ac');
            if($cur_role == ROLE_ADMIN && in_array(ADMIN_FOLDER_WSLASH, $cur_segment)){
                die('zo');
            } else {
                die('ze');
                show_404();
            }
        }
    }
?>